New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/dom-ready

Package Overview
Dependencies
Maintainers
23
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/dom-ready

Execute callback after the DOM is loaded.

  • 4.17.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-74.13%
Maintainers
23
Weekly downloads
 
Created

What is @wordpress/dom-ready?

@wordpress/dom-ready is a utility package that provides a simple way to execute JavaScript code when the DOM is fully loaded. It is particularly useful in WordPress development for ensuring that scripts run only after the DOM is ready, which is a common requirement for manipulating DOM elements.

What are @wordpress/dom-ready's main functionalities?

Execute code when DOM is ready

This feature allows you to execute a callback function once the DOM is fully loaded. It is similar to jQuery's $(document).ready() method. The code sample demonstrates how to use the domReady function to log a message to the console when the DOM is ready.

const domReady = require('@wordpress/dom-ready');
domReady(function() {
  console.log('DOM is fully loaded');
  // Your code here
});

Other packages similar to @wordpress/dom-ready

Keywords

FAQs

Package last updated on 29 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc